<template>
  <div class="page-head">
    <div class="back">
      <div class="back-btn" @click="$router.back()">
        <svg-icon name="arrow_a" size="12" color="#fff"></svg-icon>
        <span>返回</span>
      </div>
    </div>
    <div class="title"><slot></slot></div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
.page-head {
  .back {
    background-color: rgba(23, 34, 55, 1);
    padding: 0 16px;
    height: 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    .back-btn {
      color: #fff;
      font-size: 12px;
      cursor: pointer;
    }
  }
  .title {
    margin: 8px 16px 0;
    height: 37px;
    background: url('../assets/images/title-bg.png') no-repeat center / 100%;
    line-height: 37px;
    padding: 0 16px;
    color: #fff;
    font-weight: 500;
  }
}
</style>
